import http from "../utils/http";

function saveArticle(data: any) {
  return http({
    url: "/doArticle",
    method: "post",
    data: data,
  });
}

function queryArticle(data: any) {
  return http({
    url: "/getArticle",
    method: "post",
    data: data,
  });
}

export default {
  saveArticle,
  queryArticle
};
